import requests

url = 'https://www.baidu.com/s?wd=疫情'

headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36'
}
response = requests.get(url, headers=headers)

# print(response.content.decode())

with open('baidu1.html', 'w', encoding='utf-8') as f:
    f.write(response.content.decode('utf-8'))
